/**
 * Filename: YNComment.java
 *
 * @author Firefly
 * @contact postfirefly@163.com
 * @time 2016/3/1 10:48
 */
package com.github.postsanf.yinian.bean;

/**
 * 评论
 */
public class YNComment extends BaseBean {
    private String cid;                                        // 评论ID
    private String ceid;                                    // 动态ID
    private String ctime;                                    // 评论时间
    private YNUser commentUser;                                // 评论人
    private YNUser commentedUser;                            // 被评论人
    private String ccontent;                                // 评论内容
    private String cplace;                                // 评论地点

    public String getCplace() {
        return cplace;
    }

    public void setCplace(String cplace) {
        this.cplace = cplace;
    }


    public String getCid() {
        return cid;
    }

    public void setCid(String cid) {
        this.cid = cid;
    }

    public String getCeid() {
        return ceid;
    }

    public void setCeid(String ceid) {
        this.ceid = ceid;
    }

    public String getCtime() {
        return ctime;
    }

    public void setCtime(String ctime) {
        this.ctime = ctime;
    }

    public YNUser getCommentUser() {
        return commentUser;
    }

    public void setCommentUser(YNUser commentUser) {
        this.commentUser = commentUser;
    }

    public YNUser getCommentedUser() {
        return commentedUser;
    }

    public void setCommentedUser(YNUser commentedUser) {
        this.commentedUser = commentedUser;
    }

    public String getCcontent() {
        return ccontent;
    }

    public void setCcontent(String ccontent) {
        this.ccontent = ccontent;
    }

    @Override
    public boolean equals(Object o) {
        if (o instanceof YNComment) {
            return this.ceid == ((YNComment) o).ceid;
        }
        return super.equals(o);
    }
}